package de.hsf.bp.netdoc.gui;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.EmptyBorder;
import java.awt.GridLayout;
import java.awt.Component;
import javax.swing.Box;
import java.awt.Dimension;
import javax.swing.JEditorPane;
import javax.swing.SwingConstants;
import javax.swing.DropMode;
import java.awt.Font;
import javax.swing.JSeparator;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Eigenschaften extends JDialog {
	
	GuiView myGUI; 
	
	private final JPanel contentPanel = new JPanel();
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			NewProject dialog = new NewProject();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
			dialog.setModal(true);			
            
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public Eigenschaften() {	
	 
		setTitle("Eigentschaften");
		setBounds(100, 100, 549, 299);
		getContentPane().setLayout(null);
		contentPanel.setBounds(0, 0, 533, 227);
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel);
		contentPanel.setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBounds(10, 0, 162, 227);
		contentPanel.add(panel);
		panel.setLayout(null);
		
		JLabel label = new JLabel("Kategorie, Identifikation");
		label.setFont(new Font("Tahoma", Font.BOLD, 11));
		label.setBounds(10, 11, 142, 14);
		panel.add(label);
		
		JLabel lblFunktionelleAttribute = new JLabel("Funktionelle Attribute");
		lblFunktionelleAttribute.setFont(new Font("Tahoma", Font.BOLD, 11));
		lblFunktionelleAttribute.setBounds(10, 36, 142, 14);
		panel.add(lblFunktionelleAttribute);
		
		JLabel lblLokationsangabe = new JLabel("Lokationsangabe");
		lblLokationsangabe.setFont(new Font("Tahoma", Font.BOLD, 11));
		lblLokationsangabe.setBounds(10, 61, 142, 14);
		panel.add(lblLokationsangabe);
		
		JLabel lblNewLabel = new JLabel("<html>Vernetzungsangeben<br/>Becheribung der Nachbarschaft</html>");
		lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 11));
		lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
		lblNewLabel.setBounds(10, 86, 142, 42);
		panel.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("<html>St\u00F6r-/Notfall<br> relevante Angaben</html>");
		lblNewLabel_1.setFont(new Font("Tahoma", Font.BOLD, 11));
		lblNewLabel_1.setBounds(10, 139, 142, 31);
		panel.add(lblNewLabel_1);
		
		JLabel lblAngabeZumWechsel = new JLabel("<html>Angabe zum Wechsel Neuinstallation</html>");
		lblAngabeZumWechsel.setFont(new Font("Tahoma", Font.BOLD, 11));
		lblAngabeZumWechsel.setBounds(10, 181, 142, 35);
		panel.add(lblAngabeZumWechsel);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBounds(172, 0, 361, 227);
		contentPanel.add(panel_1);
		panel_1.setLayout(null);
		
		textField = new JTextField();
		textField.setBounds(10, 11, 341, 20);
		panel_1.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(10, 42, 341, 20);
		panel_1.add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		textField_2.setBounds(10, 196, 341, 20);
		panel_1.add(textField_2);
		textField_2.setColumns(10);
		
		textField_3 = new JTextField();
		textField_3.setBounds(10, 148, 341, 20);
		panel_1.add(textField_3);
		textField_3.setColumns(10);
		
		textField_4 = new JTextField();
		textField_4.setBounds(10, 97, 341, 20);
		panel_1.add(textField_4);
		textField_4.setColumns(10);
		{
			JPanel buttonPane = new JPanel();
			buttonPane.setBounds(0, 227, 533, 33);
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane);
			{
				JButton okButton = new JButton("Save");
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
			{
				JButton cancelButton = new JButton("Cancel");
				cancelButton.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent e) {
						dispose();
					}
				});
				cancelButton.setActionCommand("Cancel");
				buttonPane.add(cancelButton);
			}
		}
	}
}
